package principles.demo3.before;

/**
 * @description: 电脑类
 **/

public class Computer {

    private XiJieDisk xiJieDisk;
    private InterCpu interCpu;

    private JinShiDunMemory jinShiDunMemory;


    public void run() {
        System.out.println("运行计算机");
        String data = xiJieDisk.get();
        System.out.println("从银盘获取的数据是 =" + data);

        interCpu.run();

        jinShiDunMemory.save();
    }

    public XiJieDisk getXiJieDisk() {
        return xiJieDisk;
    }

    public void setXiJieDisk(XiJieDisk xiJieDisk) {
        this.xiJieDisk = xiJieDisk;
    }

    public InterCpu getInterCpu() {
        return interCpu;
    }

    public void setInterCpu(InterCpu interCpu) {
        this.interCpu = interCpu;
    }

    public JinShiDunMemory getJinShiDunMemory() {
        return jinShiDunMemory;
    }

    public void setJinShiDunMemory(JinShiDunMemory jinShiDunMemory) {
        this.jinShiDunMemory = jinShiDunMemory;
    }
}
